"""django_pro1 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
import app1.views
import app2.views
import student.views
urlpatterns = [
    #app1
    path('', app1.views.index, name="index"),
    #path('admin/', admin.site.urls),
    path('login/', app1.views.login_user,name="login"),
    path('logout/', app1.views.logout_user,name="logout"),
    path('home/',app1.views.home,name="home"),
    path('no_open/', app1.views.no_open, name="no_open"),
    path('add_user/',app1.views.add_user,name="add_user"),
    path('answer/',app1.views.answer,name="answer"),
    path('yzm/',app1.views.yanzhengma,name="yzm"),
    path('home_logout/',app1.views.logout_user,name="home_logout"),
    #app2
    path('in_home/', app2.views.in_home,name="in_home"),
    path('join_us/', app2.views.join_us,name="join_us"),
    # 管理员登陆
    path('admin/', admin.site.urls),
    # 学生登陆
    path('studentLogin/', student.views.studentLogin,name='studentLogin'),
    #学生注册
    path('add_student/', student.views.add_student,name='add_student'),
    # 教师登陆
    path('teacherLogin/', student.views.teacherLogin,name='teacherLogin'),
    path('toIndex/', student.views.toIndex, name='toIndex'),
    path('showGrade/', student.views.showGrade,name='showGrade'),
    path('queryStudent/', student.views.queryStudent,name='queryStudent'),
    path('startExam/', student.views.startExam,name='startExam'),
    path('calGrade/', student.views.calGrade,name='calGrade'),
    path('logout/', student.views.logOut,name='logout'),
]